﻿@{
    ViewBag.Title = "About";
}
<h2>@ViewBag.Title.</h2>
<h3>@ViewBag.Message</h3>

<p>Use this area to provide additional information.</p>
@Session["user"]

@section scripts{
    <script type="text/javascript">
        $.ajax({
            type: "post",
            url: "http://192.168.2.222:8005/Channel/GetApplications",
            data: { "PageNo": 1, "PageSize": 15 },
            dataType: 'json', //【这里要小心啊，不要用jsonp，一定是json】
            crossDomain: true, //【这个很重要，一定要加】
            xhrFields: {
                withCredentials:true
            },
            success: function (result) {
                console.log(result);
            },
            error: function (result) {
                console.log(result);
            }
        });
    </script>
}